package sm.codec.exception;

import org.apache.mina.core.buffer.IoBuffer;

public class DecodeException extends Exception {

	private static final long serialVersionUID = -6636673564006242560L;

	private IoBuffer buffer;

	public IoBuffer getBuffer() {
		return buffer;
	}

	public DecodeException(String s, IoBuffer buffer) {
		super(s);
		this.buffer = buffer;
	}

	public DecodeException(String s, Throwable throwable, IoBuffer buffer) {
		super(s, throwable);
		this.buffer = buffer;
	}

}
